const install = (Vue, vm) => {
	let api = {}
	const http = uni.$u.http
	// 获取动态列表
	api.getFeeds = params => http.get('/sys/log/operation/page', params)
	// 登陆
	api.userLogin = params => http.post('/auth/login', params)
	// 退出
	api.userLogout = () => http.post('/auth/logout')
	
	// 将各个定义的接口名称，统一放进对象挂载到vm.$u.api(因为vm就是this，也即this.$u.api)下
	vm.$u.api = api
}

export default {
	install
}